<html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui" xmlns:ui="http://java.sun.com/jsf/facelets">
<h:body>
	<h:panelGrid columns="3" id="dialogpanel">
		<f:facet name="header">  
          New Author 
        </f:facet>
		<h:outputLabel for="fullname" value="Full Name: *" />
		<p:inputText id="fullname" required="true" value="#{authorsBean.fullName}" validator="#{authorsBean.fullNameValidate}" />
		<p:message for="fullname" id="fullnamemsg" display="text" />

		<h:outputLabel for="email" value="Email: " />
		<p:inputText id="email" value="#{authorsBean.email}" validator="#{authorsBean.emailValidate}" />
		<p:message for="email" id="msgemail" display="text" />


		<h:outputLabel for="date" value="Birthday: " />
		<p:calendar value="#{authorsBean.birthDay}" id="date" effect="explode" navigator="true" />
		<p:message for="date" id="msgdate" display="icon" />


		<f:facet name="footer">
			<p:commandButton update="dialogpanel" action="#{authorsBean.createAuthor}" value="Create" icon="ui-icon-check" />
			<p:commandButton value="Cancel" update="dialogpanel" action="#{authorsBean.hideDialog}" immediate="true" />
		</f:facet>
	</h:panelGrid>
</h:body>
</html>